home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-02-13 | 8.8 KB | 358 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: LinkSrcB.xh.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxh.dll: 2.33
- */
-
- /*
- *
- * Classes defined in this interface
- *
- */
-
-
- #ifndef SOM_ODBaseLinkSource_xh
- #define SOM_ODBaseLinkSource_xh
-
- class ODBaseLinkSource;
-
- #define ODBaseLinkSource_MajorVersion 1
- #define ODBaseLinkSource_MinorVersion 0
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_ODPersistentObject_xh
- #include <PstObj.xh>
- #endif
-
- #ifndef ODBaseLinkSource_API
- #define ODBaseLinkSource_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class SOMClass;
- class SOMObject;
- class ODFrame;
- class ODFacet;
- class ODObject;
- class ODExtension;
- class ODRefCntObject;
- class ODPersistentObject;
- class ODStorageUnit;
- class ODBaseLinkSource;
- class ODPart;
- class ODPartList;
- class ODLink;
- class ODDraft;
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define ODBaseLinkSourceCClassData ODBaseLinkSourceClassData
- #define ODBaseLinkSourceNewClass(major,minor) somNewVersionedClassReference(ODBaseLinkSource,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define ODBaseLinkSourceMetaClass SOMClass
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
-
- /* The API to the ODBaseLinkSource class object, and the methods it introduces. */
- SOMEXTERN struct ODBaseLinkSourceClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken Lock;
- somMToken Unlock;
- somMToken Clear;
- somMToken GetContentStorageUnit;
- somMToken ContentUpdated;
- somMToken GetUpdateID;
- somMToken SetAutoUpdate;
- somMToken IsAutoUpdate;
- somMToken SetSourcePart;
- somMToken GetChangeTime;
- somMToken ShowLinkSourceInfo;
- somMToken reserved1;
- somMToken reserved2;
- somMToken reserved3;
- somMToken reserved4;
- somMToken reserved5;
- somMToken reserved6;
- somMToken reserved7;
- somMToken reserved8;
- somMToken reserved9;
- somMToken reserved10;
- somMToken reserved11;
- } SOMDLINK ODBaseLinkSourceClassData;
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- #if !defined(ODBaseLinkSource_Class_Source) && !defined(SOM_Module_linksrcb_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list ODBaseLinkSourceClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for ODBaseLinkSource Method Procedures
- */
- SOMEXTERN {
- typedef ODBoolean (* SOMLINK somTD_ODBaseLinkSource_Lock)(ODBaseLinkSource *somSelf, Environment *ev,
- ODULong wait,
- ODLinkKey* key);
- typedef void (* SOMLINK somTD_ODBaseLinkSource_Unlock)(ODBaseLinkSource *somSelf, Environment *ev,
- ODLinkKey key);
- typedef void (* SOMLINK somTD_ODBaseLinkSource_Clear)(ODBaseLinkSource *somSelf, Environment *ev,
- ODUpdateID id,
- ODLinkKey key);
- typedef ODStorageUnit* (* SOMLINK somTD_ODBaseLinkSource_GetContentStorageUnit)(ODBaseLinkSource *somSelf, Environment *ev,
- ODLinkKey key);
- typedef void (* SOMLINK somTD_ODBaseLinkSource_ContentUpdated)(ODBaseLinkSource *somSelf, Environment *ev,
- ODUpdateID id,
- ODLinkKey key);
- typedef ODBoolean (* SOMLINK somTD_ODBaseLinkSource_ShowLinkSourceInfo)(ODBaseLinkSource *somSelf, Environment *ev,
- ODFacet* facet,
- ODUpdateID change,
- ODBoolean changesAllowed,
- ODLinkInfoResult* infoResult);
- typedef ODUpdateID (* SOMLINK somTD_ODBaseLinkSource_GetUpdateID)(ODBaseLinkSource *somSelf, Environment *ev);
- typedef ODTime (* SOMLINK somTD_ODBaseLinkSource_GetChangeTime)(ODBaseLinkSource *somSelf, Environment *ev);
- typedef ODBoolean (* SOMLINK somTD_ODBaseLinkSource_IsAutoUpdate)(ODBaseLinkSource *somSelf, Environment *ev);
- typedef void (* SOMLINK somTD_ODBaseLinkSource_SetAutoUpdate)(ODBaseLinkSource *somSelf, Environment *ev,
- ODBoolean automatic);
- typedef void (* SOMLINK somTD_ODBaseLinkSource_SetSourcePart)(ODBaseLinkSource *somSelf, Environment *ev,
- ODStorageUnit* sourcePartSU);
- }
-
- #endif /* ODBaseLinkSource_API */
-
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for ODBaseLinkSource
- */
- class ODBaseLinkSource : public ODPersistentObject
- {
- public:
-
- // ODBaseLinkSource::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for ODBaseLinkSource, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(ODBaseLinkSource);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(ODBaseLinkSource);
- #endif
- }
-
- // ODBaseLinkSource::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- /* method: Lock */
- ODBoolean Lock(Environment *ev,
- ODULong wait,
- ODLinkKey* key)
- {
- #ifdef SOMCHKEXCEPT
- ODBoolean __somResult =
- SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,Lock)
- (this,ev,wait,key);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,Lock)
- (this,ev,wait,key);
- #endif
- }
-
- /* method: Unlock */
- void Unlock(Environment *ev,
- ODLinkKey key)
- {
- SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,Unlock)
- (this,ev,key);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: Clear */
- void Clear(Environment *ev,
- ODUpdateID id,
- ODLinkKey key)
- {
- SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,Clear)
- (this,ev,id,key);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: GetContentStorageUnit */
- ODStorageUnit* GetContentStorageUnit(Environment *ev,
- ODLinkKey key)
- {
- #ifdef SOMCHKEXCEPT
- ODStorageUnit* __somResult =
- SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,GetContentStorageUnit)
- (this,ev,key);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,GetContentStorageUnit)
- (this,ev,key);
- #endif
- }
-
- /* method: ContentUpdated */
- void ContentUpdated(Environment *ev,
- ODUpdateID id,
- ODLinkKey key)
- {
- SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,ContentUpdated)
- (this,ev,id,key);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: ShowLinkSourceInfo */
- ODBoolean ShowLinkSourceInfo(Environment *ev,
- ODFacet* facet,
- ODUpdateID change,
- ODBoolean changesAllowed,
- ODLinkInfoResult* infoResult)
- {
- #ifdef SOMCHKEXCEPT
- ODBoolean __somResult =
- SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,ShowLinkSourceInfo)
- (this,ev,facet,change,changesAllowed,infoResult);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,ShowLinkSourceInfo)
- (this,ev,facet,change,changesAllowed,infoResult);
- #endif
- }
-
- /* method: GetUpdateID */
- ODUpdateID GetUpdateID(Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- ODUpdateID __somResult =
- SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,GetUpdateID)
- (this,ev);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,GetUpdateID)
- (this,ev);
- #endif
- }
-
- /* method: GetChangeTime */
- ODTime GetChangeTime(Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- ODTime __somResult =
- SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,GetChangeTime)
- (this,ev);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,GetChangeTime)
- (this,ev);
- #endif
- }
-
- /* method: IsAutoUpdate */
- ODBoolean IsAutoUpdate(Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- ODBoolean __somResult =
- SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,IsAutoUpdate)
- (this,ev);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,IsAutoUpdate)
- (this,ev);
- #endif
- }
-
- /* method: SetAutoUpdate */
- void SetAutoUpdate(Environment *ev,
- ODBoolean automatic)
- {
- SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,SetAutoUpdate)
- (this,ev,automatic);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: SetSourcePart */
- void SetSourcePart(Environment *ev,
- ODStorageUnit* sourcePartSU)
- {
- SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,SetSourcePart)
- (this,ev,sourcePartSU);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- }; /* ODBaseLinkSource */
-
-
-
- #endif /* SOM_ODBaseLinkSource_xh */
-